package com.news.entity;

import java.util.Date;

public class News {
    private int id;
    private String name;
    private String department;
    private Date newstime;
    private String news;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public Date getNewstime() {
        return newstime;
    }

    public void setNewstime(Date newstime) {
        this.newstime = newstime;
    }

    public String getNews() {
        return news;
    }

    public void setNews(String news) {
        this.news = news;
    }
    @Override
    public String toString(){
        return "User [id=" + id + ", name=" + name + ", department=" + department + ", newstime=" + newstime
                + ", news=" + news + "]";
    }
}
